<?php

function view_login($config,$param) {
    view_header_up($config,$param);
    //
    ?><title>Idebeda-Login</title><?
    //
    view_header_bottom($config,$param);
    ?>
    <h2>Login</h2>
    <?
    if (isset($_SESSION['logfail'])) {
        echo '<div class="danger alert">Password atau Username Anda keliru</div>';
        unset($_SESSION['logfail']);
    }
    ?>
    <form action="" method="post">
		<ul>
			<li class="field">
				<label class="inline" for="uname">Username</label>
				<input class="wide text input" id="uname" name="uname" type="text" placeholder="username" />
			</li>
			<li class="field">
				<label class="inline" for="pass">Password</label>
				<input class="wide text input" id="pass" name="pass" type="password" placeholder="password" />
				<div id="inlineDatepicker"></div>
			</li>
			<div class="medium default btn"><input type="submit" name="loggin" value="Submit" /></div>
		</ul>
	</form>
<?
	view_footer($config,$param);
}

?>
